package com.agan.aganjavaspyder.crawler.un_demo;

import com.geccocrawler.gecco.annotation.*;
import com.geccocrawler.gecco.spider.HtmlBean;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

/**
 * @author agan
 * @ClassName PhoneDto
 * @Description
 * @Date 2020/10/19 1:28 下午
 **/

@Setter
@Getter
@ToString
@Gecco(matchUrl="http://mall.10010.com/goodsdetail/{goodsId}.html",pipelines = {
        "consolePipeline","JsonPhontPipeline" })
public class PhoneDto implements HtmlBean {

    @RequestParameter("goodsId")
    private String goodsId;

    /**
     * js 脚本获取该手机所有组合信息
     */
    @Html
    @HtmlField(cssPath="script")
    private String resultText;

}
